.class Lcom/brixd/niceapp/activity/fragment/SideNavigationFragment$1;
.super Ljava/lang/Object;
.source "SideNavigationFragment.java"

# interfaces
.implements Lcom/brixd/niceapp/activity/fragment/SideNavigationFragment$OnCategorySelected;


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/brixd/niceapp/activity/fragment/SideNavigationFragment;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/brixd/niceapp/activity/fragment/SideNavigationFragment;


# direct methods
.method constructor <init>(Lcom/brixd/niceapp/activity/fragment/SideNavigationFragment;)V
    .registers 2
    .param p1, "this$0"    # Lcom/brixd/niceapp/activity/fragment/SideNavigationFragment;

    .prologue
    .line 120
    iput-object p1, p0, Lcom/brixd/niceapp/activity/fragment/SideNavigationFragment$1;->this$0:Lcom/brixd/niceapp/activity/fragment/SideNavigationFragment;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onSelected(ILjava/lang/Object;)V
    .registers 6
    .param p1, "pos"    # I
    .param p2, "object"    # Ljava/lang/Object;

    .prologue
    .line 123
    iget-object v1, p0, Lcom/brixd/niceapp/activity/fragment/SideNavigationFragment$1;->this$0:Lcom/brixd/niceapp/activity/fragment/SideNavigationFragment;

    # getter for: Lcom/brixd/niceapp/activity/fragment/SideNavigationFragment;->mCurrentItemBox:Ljava/lang/Object;
    invoke-static {v1}, Lcom/brixd/niceapp/activity/fragment/SideNavigationFragment;->access$000(Lcom/brixd/niceapp/activity/fragment/SideNavigationFragment;)Ljava/lang/Object;

    move-result-object v1

    instance-of v1, v1, Lcom/brixd/niceapp/model/CategoryModel;

    if-eqz v1, :cond_40

    .line 124
    invoke-static {}, Lcom/brixd/niceapp/bus/BusProvider;->getInstance()Lcom/squareup/otto/Bus;

    move-result-object v1

    new-instance v2, Lcom/brixd/niceapp/bus/event/ScrollToCategoryEvent;

    invoke-direct {v2, p1}, Lcom/brixd/niceapp/bus/event/ScrollToCategoryEvent;-><init>(I)V

    invoke-virtual {v1, v2}, Lcom/squareup/otto/Bus;->post(Ljava/lang/Object;)V

    .line 125
    iget-object v1, p0, Lcom/brixd/niceapp/activity/fragment/SideNavigationFragment$1;->this$0:Lcom/brixd/niceapp/activity/fragment/SideNavigationFragment;

    iget-object v1, v1, Lcom/brixd/niceapp/activity/fragment/SideNavigationFragment;->slidingMenuActivity:Lcom/brixd/niceapp/activity/AbsBaseSlidingMenuActivity;

    invoke-virtual {v1}, Lcom/brixd/niceapp/activity/AbsBaseSlidingMenuActivity;->toggle()V

    .line 130
    :goto_1d
    iget-object v1, p0, Lcom/brixd/niceapp/activity/fragment/SideNavigationFragment$1;->this$0:Lcom/brixd/niceapp/activity/fragment/SideNavigationFragment;

    # getter for: Lcom/brixd/niceapp/activity/fragment/SideNavigationFragment;->mCurrentItemBox:Ljava/lang/Object;
    invoke-static {v1}, Lcom/brixd/niceapp/activity/fragment/SideNavigationFragment;->access$000(Lcom/brixd/niceapp/activity/fragment/SideNavigationFragment;)Ljava/lang/Object;

    move-result-object v1

    instance-of v1, v1, Landroid/widget/LinearLayout;

    if-eqz v1, :cond_3a

    .line 131
    iget-object v1, p0, Lcom/brixd/niceapp/activity/fragment/SideNavigationFragment$1;->this$0:Lcom/brixd/niceapp/activity/fragment/SideNavigationFragment;

    # getter for: Lcom/brixd/niceapp/activity/fragment/SideNavigationFragment;->mCurrentItemBox:Ljava/lang/Object;
    invoke-static {v1}, Lcom/brixd/niceapp/activity/fragment/SideNavigationFragment;->access$000(Lcom/brixd/niceapp/activity/fragment/SideNavigationFragment;)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Landroid/view/ViewGroup;

    const/4 v2, 0x0

    invoke-virtual {v1, v2}, Landroid/view/ViewGroup;->getChildAt(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    .line 132
    .local v0, "currentIndicatorImage":Landroid/widget/ImageView;
    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V

    .line 135
    .end local v0    # "currentIndicatorImage":Landroid/widget/ImageView;
    :cond_3a
    iget-object v1, p0, Lcom/brixd/niceapp/activity/fragment/SideNavigationFragment$1;->this$0:Lcom/brixd/niceapp/activity/fragment/SideNavigationFragment;

    # setter for: Lcom/brixd/niceapp/activity/fragment/SideNavigationFragment;->mCurrentItemBox:Ljava/lang/Object;
    invoke-static {v1, p2}, Lcom/brixd/niceapp/activity/fragment/SideNavigationFragment;->access$002(Lcom/brixd/niceapp/activity/fragment/SideNavigationFragment;Ljava/lang/Object;)Ljava/lang/Object;

    .line 136
    return-void

    .line 127
    :cond_40
    iget-object v1, p0, Lcom/brixd/niceapp/activity/fragment/SideNavigationFragment$1;->this$0:Lcom/brixd/niceapp/activity/fragment/SideNavigationFragment;

    iget-object v1, v1, Lcom/brixd/niceapp/activity/fragment/SideNavigationFragment;->slidingMenuActivity:Lcom/brixd/niceapp/activity/AbsBaseSlidingMenuActivity;

    iget-object v2, p0, Lcom/brixd/niceapp/activity/fragment/SideNavigationFragment$1;->this$0:Lcom/brixd/niceapp/activity/fragment/SideNavigationFragment;

    # getter for: Lcom/brixd/niceapp/activity/fragment/SideNavigationFragment;->mCategoryModels:Ljava/util/ArrayList;
    invoke-static {v2}, Lcom/brixd/niceapp/activity/fragment/SideNavigationFragment;->access$100(Lcom/brixd/niceapp/activity/fragment/SideNavigationFragment;)Ljava/util/ArrayList;

    move-result-object v2

    invoke-static {v2, p1}, Lcom/brixd/niceapp/activity/fragment/CategoryFragment;->getInstance(Ljava/util/ArrayList;I)Lcom/brixd/niceapp/activity/fragment/CategoryFragment;

    move-result-object v2

    invoke-virtual {v1, v2}, Lcom/brixd/niceapp/activity/AbsBaseSlidingMenuActivity;->switchFragment(Landroid/support/v4/app/Fragment;)V

    goto :goto_1d
.end method
